package com.zjjk.transfer.source.service;

import com.zjjk.transfer.source.entity.SourceUserDiscount;
import com.zjjk.transfer.source.param.SourceUserDiscountPageParam;
import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.framework.core.pagination.Paging;

/**
 * 用户折扣信息 服务类
 *
 * @author xuziyang
 * @since 2021-03-26
 */
public interface SourceUserDiscountService extends BaseService<SourceUserDiscount> {

    /**
     * 保存
     *
     * @param sourceUserDiscount
     * @return
     * @throws Exception
     */
    boolean saveSourceUserDiscount(SourceUserDiscount sourceUserDiscount) throws Exception;

    /**
     * 修改
     *
     * @param sourceUserDiscount
     * @return
     * @throws Exception
     */
    boolean updateSourceUserDiscount(SourceUserDiscount sourceUserDiscount) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteSourceUserDiscount(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param sourceUserDiscountQueryParam
     * @return
     * @throws Exception
     */
    Paging<SourceUserDiscount> getSourceUserDiscountPageList(SourceUserDiscountPageParam sourceUserDiscountPageParam) throws Exception;

}
